/*
 * mcs.h
 *
 *  Created on: Oct 12, 2011
 *      Author: welcome
 */

#ifndef MCS_H_
#define MCS_H_

#include <rdesktop.h>

#ifdef __cplusplus
extern "C" {
#endif

extern STREAM mcs_init(int length);
extern void mcs_send_to_channel(STREAM s, uint16 channel);
extern void mcs_send(STREAM s);
extern STREAM mcs_recv(uint16 * channel, uint8 * rdpver);
extern RD_BOOL mcs_connect(char *server, STREAM mcs_data, char *username, RD_BOOL reconnect);
extern void mcs_disconnect(void);
extern void mcs_reset_state(void);

#ifdef __cplusplus
}
#endif

#endif /* MCS_H_ */
